﻿using System;
using System.Collections.Generic;
using Bouyei.GeoCore.Converters;
using Bouyei.GeoCore.Geometries;
using Bouyei.GeoCore.GeoParsers.EsirMdb;

namespace Bouyei.GeoCore.GeoParsers.Parser
{
    public class EsriMdbParser
    {
        private GeometryReader reader = null;

        public EsriMdbParser()
        { }

        public Geometry FromReader(byte[] buffer, int offset = 0)
        {
            reader = new GeometryReader(buffer, offset);
            return reader.Reader();
        }
    }
}
